package beans;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity							
@Table(name="ItemsProveedor")
public class ItemProovedorBean implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue
	private int idItemProovedor;
	
	@OneToOne(cascade=CascadeType.ALL)
	@JoinColumn(name="idItemProovedor")
	private ProovedorBean proovedor;
	
	@Column(name="precio")
	private float precio;
	
	
	public int getIdItemProovedor() {
		return idItemProovedor;
	}
	public void setIdItemProovedor(int idItemProovedor) {
		this.idItemProovedor = idItemProovedor;
	}
	public ProovedorBean getProovedor() {
		return proovedor;
	}
	public void setProovedor(ProovedorBean proovedor) {
		this.proovedor = proovedor;
	}
	public float getPrecio() {
		return precio;
	}
	public void setPrecio(float precio) {
		this.precio = precio;
	}
	
	
}
